<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="./vite.svg" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
    />

    <title>移动端</title>
    <script type="module" crossorigin src="./assets/index-BQUjVYLz.js"></script>
    <link rel="stylesheet" crossorigin href="./assets/index-CsDVzL_x.css" />
  </head>
  <body>
    <div id="app"></div>
    <script>
      function IsPC() {
        var userAgentInfo = navigator.userAgent

        var Agents = [
          'Android',
          'iPhone',

          'SymbianOS',
          'Windows Phone',

          'iPad',
          'iPod',
        ]

        var flagPc = true

        for (var v = 0; v < Agents.length; v++) {
          if (userAgentInfo.indexOf(Agents[v]) > 0) {
            flagPc = false

            break
          }
        }

        return flagPc
      }

      var flag = IsPC()

      if (flag) {
        if (location.pathname.indexOf('pc') === -1) {
          location.href = '../pc/'
        }
      } else {
        if (location.pathname.indexOf('h5') === -1) {
          location.href = '../h5/'
        }
      }

      console.log(flag) //true为PC端，false为手机端
      // setInterval('debugger', 500)
    </script>
  </body>
</html>
